package com.lj.framework.common.exception;

import lombok.Data;

@Data
public class ApiException extends Exception{

    private Integer code;
    private String message;

    public ApiException(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public ApiException(Throwable e)
    {
        super(e.getMessage(), e);
    }

    public ApiException(String message)
    {
        super(message);
    }

    public ApiException(String message, Throwable throwable)
    {
        super(message, throwable);
    }
}
